package entity;

import java.util.ArrayList;
import java.util.List;

public class Hand extends PokerPile{
	@Override
	public boolean put(List<Poker> pokers) {
		pokerList=pokers;//手中的牌只要对方愿意给，就照单全收
		return true;
	}

	@Override
	public List<Poker> get(int i) {
		List<Poker> list=new ArrayList<>();
		if(pokerList==null)
			return list;
		for(Poker poker:pokerList)
			list.add(poker);
		//System.out.println(list);
		pokerList=new ArrayList<>();
		return list;//只要一松手，就得把所有牌全扔出去
	}

}
